import java.util.Scanner;

public class Homework0324seventh {
    public static void main(String[] args){
        System.out.print("请输入三个数：");
        Scanner scanner = new Scanner((System.in));
        int a =scanner.nextInt();
        int b =scanner.nextInt();
        int c =scanner.nextInt();
        scanner.close();
        if(a<b){
            int t=a;
            a=b;
            b=t;
        }
        if(a<c){
            int t =a;
            a=c;
            c=t;
        }
        if(b<c){
            int t=b;
            b=c;
            c=t;
        }
        System.out.println(c+" "+b+" "+a);
    }
}
